package com.hubei.car.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@ApiModel(value="询价表")
@Data
@Accessors(chain = true) //开启链写编程
@TableName(value = "ms_inquiry")
public class MsInquiry {

    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value="询价表主键id")
    private Long id;

    @TableField(value = "name")
    @ApiModelProperty(value = "姓名",example = "张三")
    private String name;

    @TableField(value = "mobile")
    @ApiModelProperty(value = "电话",example = "10086")
    private String mobile;

    @TableField(value = "create_date")
    @ApiModelProperty(value = "创建时间", example = "2019-11-29 15:28:36")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createDate;

    @TableField(value = "user_id")
    @ApiModelProperty(value = "创建人id",example = "1")
    private Long userId;

    @TableField(value = "status")
    @ApiModelProperty(value = "状态 0未处理 1已处理",example = "0")
    private Integer status;

    @TableField(value = "product_id")
    @ApiModelProperty(value = "产品id",example = "1")
    private Long productId;

}
